//package com.jxw.cloudpen.web.netty.websocketclient;
//
//import cn.xfyun.base.webscoket.WebSocketClient;
//
//import javax.websocket.ContainerProvider;
//import javax.websocket.DeploymentException;
//import javax.websocket.Session;
//import javax.websocket.WebSocketContainer;
//import java.io.IOException;
//import java.net.URI;
//import java.net.URISyntaxException;
//
///**
// * @author ligang
// * @create 2025/3/20 15:29
// */
//public class client {
//
//    public static void main(String[] args) throws IOException, DeploymentException, URISyntaxException {
//        WebSocketContainer container = ContainerProvider.getWebSocketContainer();
//
//        URI uri = new URI("ws://localhost:6601/websocket");
//
//        Session session = container.connectToServer(WebSocketClient.class, uri);
//
//        session.getBasicRemote().sendText("Hello, WebSocket server!");
//    }
//
//}
